home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / APPEXPRT.PAK / APXPREV.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  2KB  |  80 lines

  1. //----------------------------------------------------------------------------
  2. ##@QUERY_PRJ_NAME [[Project]]
  3. //  Project [[Project]]
  4. ##@QUERY_PRJ_COMPANY [[CompanyName]] 2
  5. ##@QUERY_PRJ_COPYRIGHT [[Copyright]] 2
  6. ##\\Copyright Copyright 2
  7. //  [[CompanyName]]
  8. //  [[Copyright]]
  9. //
  10. ##@QUERY_TARGET_NAME [[Target]]
  11. //  SUBSYSTEM:    [[Target]] Application
  12. //  FILE:         apxprev.h
  13. ##@QUERY_PRJ_USER [[Author]]
  14. //  AUTHOR:       [[Author]]
  15. //
  16. //  OVERVIEW
  17. //  ~~~~~~~~
  18. //  Class definition for TApxPreviewWin (Print Preview).
  19. //
  20. //----------------------------------------------------------------------------
  21. #if !defined(apxprev_h)   // Sentry, use file only if it's not already included.
  22. #define apxprev_h
  23.  
  24. #include <owl/controlb.h>
  25. #include <owl/preview.h>
  26.  
  27. #include "apxprint.h"
  28. ##<<TApplication QUERY_FILENAME_CPP [[FileName]]
  29. #include "[[FileName]].rh"
  30.  
  31.  
  32. //{{TDecoratedFrame = TApxPreviewWin}}
  33. class TApxPreviewWin : public TDecoratedFrame {
  34.   public:
  35.     TApxPreviewWin(TWindow* parentWindow, TPrinter* printer, TWindow* currWindow, const char far* title, TLayoutWindow* client);
  36.    ~TApxPreviewWin();
  37.  
  38.     int             PageNumber, FromPage, ToPage;
  39.  
  40.     TWindow*        CurrWindow;
  41.     TControlBar*    PreviewSpeedBar;
  42.     TPreviewPage*   Page1;
  43.     TPreviewPage*   Page2;
  44.     TPrinter*       Printer;
  45.  
  46.     TPrintDC*       PrnDC;
  47.     TSize*          PrintExtent;
  48.     TApxPrintout*   Printout;
  49.  
  50.   private:
  51.     TLayoutWindow*  Client;
  52.  
  53.     void SpeedBarState();
  54.     void PPR_PreviousEnable(TCommandEnabler& tce);
  55.     void PPR_NextEnable(TCommandEnabler& tce);
  56.     void PPR_Previous();
  57.     void PPR_Next();
  58.     void PPR_OneUp();
  59.     void PPR_TwoUpEnable(TCommandEnabler& tce);
  60.     void PPR_TwoUp();
  61.     void PPR_Done();
  62. ##@QUERY_APPL_MODEL == VALUE_MDI 2
  63.     void CmPrintEnable(TCommandEnabler& tce);
  64.     void CmPrint();
  65.  
  66. //{{TApxPreviewWinVIRTUAL_BEGIN}}
  67.   protected:
  68. ##DBVirtual("TApxPreviewWin", "SetupWindow")
  69.     virtual void SetupWindow();
  70. //{{TApxPreviewWinVIRTUAL_END}}
  71.  
  72. //{{TApxPreviewWinRSP_TBL_BEGIN}}
  73.   protected:
  74.     void EvClose();
  75. //{{TApxPreviewWinRSP_TBL_END}}
  76. DECLARE_RESPONSE_TABLE(TApxPreviewWin);
  77. };    //{{TApxPreviewWin}}
  78.  
  79. #endif  // apxprev_h
  80.